import Types from '../actionTypes';
import {getRoleList, viewDetails} from '../../api';


const GET_ROLE_LIST = (page = 1, page_size = 20) => {
  return new Promise((resolve, reject) => {
    getRoleList(page, page_size).then(res => {
      console.log(res);
      resolve({
        type: Types.GET_ROLE_LIST,
        res
      });
    }).catch(err => {
      console.log(err);
    });
  });
};

export default {
  GET_ROLE_LIST
};
